@charset "utf-8";
@import "compass";
@import "../common";


//订单详情进度小icon
$order_detail-spacing: 10px;
$order_detail-sprite-dimensions:true;// false 生成的图片精灵要不要带长宽
@import "order_detail/*.png";
//底部结算 bar
.pay_bar {height: 65px;line-height: 65px;margin-top: 40px;padding-left: 25px;background: $bg-info;
  span.mgr25 {margin-right: 25px;}
  .fr {width: 70%;text-align: right;}
  .pay_btn {display: inline-block;width: 100px;padding: 0 25px;text-align: center;color: $font-white-color;background: $bg-primary;}
}

// form 布局
.form-block {
  .form-row {margin:5px 0 10px;
    label {display: block;margin-bottom:15px;}
    textarea {padding: 5px;min-height: 40px;border: $border-default;width: 540px;}
  }
  .row_mes{@include clearfix;@include float-right;margin-top: 35px;}
}

/*------------订单详情页-----------*/
//订单详情进度 合同查看弹窗也用到
.progress{
  ul.description {width: 85%;margin: 12px auto;
    li {position: relative; @include float-left;text-align: center;
      dl {position: relative;margin-top: 15px;
        &:before {content: "";position: absolute;top: -8px;left: 50%;margin-left: -8px;width: 10px;height: 10px;background: #959fb2;border-radius: 100%;z-index: 2;border: 3px solid #fff;}
      }
      dt{padding-top: 20px;border-top: 2px solid #c6ccd2;color: $font-info-color-light;font-weight: bold;}
      dd{padding: 5px 0 ;color: $font-info-color-light;}

    }
    li.now{
      dl:before{top: -11px;margin-left: -10px;width: 16px;height: 16px;background: $bg-primary;border-width: 4px;}
      dt {border-top-color: $border-primary-color;}
    }
    li.pass{
      dl:before{background: $bg-primary;}
      dt {border-top-color: $border-primary-color;}
    }/*原点的三个状态*/
    .step1 img{@include order_detail-sprite(step1);}
    .step2 img{@include order_detail-sprite(step2);}
    .step2-1 img{@include order_detail-sprite(step2-1);}
    .step3 img{@include order_detail-sprite(step3);}
    .step4 img{@include order_detail-sprite(step4);}
    .step1-1 img{@include order_detail-sprite(step1-1);}
    &.offline{
      li{width: (100%/5);}
      &.step0 {li:first-child{@extend li.now;}}
      &.step1 {
        li:first-child{@extend li.pass;}
        li:nth-child(2){@extend li.now;}
      }
      &.step2 {
        li:first-child,
        li:nth-child(2){@extend li.pass;}
        li:nth-child(3){@extend li.now;}
      }
      &.step3 {
        li:first-child,
        li:nth-child(2),
        li:nth-child(3){@extend li.pass;}
        li:nth-child(4){@extend li.now;}
      }
      &.step4 {
        li:first-child,
        li:nth-child(2),
        li:nth-child(3),
        li:nth-child(4){@extend li.pass;}
        li:nth-child(5){@extend li.now;}
      }
    }
    &.online{
      li{width: (100%/4);}
      &.step0 {li:first-child{@extend li.now;}}
      &.step2 {
        li:first-child{@extend li.pass;}
        li:nth-child(2){@extend li.now;}
      }
      &.step3 {
        li:first-child,
        li:nth-child(2){@extend li.pass;}
        li:nth-child(3){@extend li.now;}
      }
      &.step4 {
        li:first-child,
        li:nth-child(2),
        li:nth-child(3){@extend li.pass;}
        li:nth-child(4){@extend li.now;}
      }
    }


  }

}

/*------------购物车结算进度条-----------*/

.progress2{position: relative;
  &:before {content: "";position: absolute;left: 0;top: 12px;width: 100%;height: 3px;background: $bg-info;}
  &:after {content: "";position: absolute;left: 0;top: 12px;height: 3px;background: #2ad38a;}
  li {position: relative; @include float-left;text-align: center;
    .circle {position: relative;display: inline-block;width: 38px;height: 28px;background: #fff;z-index: 9;
      &:before {content:"";position: relative;display: inline-block;width: 4px;height: 8px;top: 2px;left: 1px;border-style:solid;border-width: 0;border-color: transparent #fff #fff transparent;z-index: 3;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
      }
      &:after {content: "";position: absolute;left: 0;top: 0;display: inline-block;width: 19px;height: 19px;margin: 0 5px;border-radius: 100%;border: 5px solid #fff;background: #ccc;z-index: 2;}
    }
    .text {margin-top: 7px;color: $font-info-color-light;}
  }
  li.active{
    .circle {
      &:before {border-width: 1px;}
      &:after {background: #2ad38a;border-color: #d4f6e8;}
    }
  }
  li:first-child {padding-right: 20px;}
  li:nth-child(2) {padding: 0 20px;}
  li:nth-child(3) {padding: 0 25px 0 35px;}
  li:last-child {padding-left: 35px;}

  &.step0 {
    &:after {width: 20%;}
    li:first-child {@extend li.active;}
  }
  &.step1 {
    &:after {width: 50%;}
    li:first-child,
    li:nth-child(2) {@extend li.active;}
  }
  &.step2 { &:after {width: 80%;}
    li:first-child,
    li:nth-child(2),
    li:nth-child(3){@extend li.active;}
  }
  &.step3 { &:after {width: 100%;}
    li {@extend li.active;}
  }


}


/*--------------------合同信息页--------------------*/
.contract-info { @extend .progress;
  ul.description.online{
    li{width: (100%/4);}
    &.step0 {li:first-child{@extend li.now;}}
    &.step1 {
      li:first-child{@extend li.pass;}
      li:nth-child(2){@extend li.now;}
    }
    &.step3 {
      li:first-child,
      li:nth-child(2){@extend li.pass;}
      li:nth-child(3){@extend li.now;}
    }
    &.step4 {
      li:first-child,
      li:nth-child(2),
      li:nth-child(3){@extend li.pass;}
      li:nth-child(4){@extend li.now;}
    }
  }
}

//物流信息
.order .logistics {
  ul{
    li {padding-bottom: 10px;color: $font-info-color;border-left: $border-default;vertical-align: top;min-height: 25px;line-height: 0.6rem;
      .time {@include inline-block;width: 140px;margin-right: 40px;}
      .text {@include inline-block;width: 600px;margin-top: -4px;vertical-align: top;line-height: 1.25rem;}
      &:before {content: "";@include inline-block;width: 5px;height: 5px;margin-left: -6px;margin-right: 14px;background: $bg-info;border: 3px solid #fff;border-radius: 100%;}
      &.now {color: $font-primary-color;
        &:before {background: $bg-primary;}
      }
      &:last-child {border-color: transparent;}

    }
  }
}
//地址信息等

.order .addr_info {
  .header {margin-bottom: 20px;}
  .row{@include pie-clearfix;margin-bottom: 8px;
    .col1,
    .col2 {
      label {display: inline-block;width: 100px;text-align: right;margin-right: 5px;}
      span {margin-right: 15px;color: $font-info-color;}
    }

  }
  .hr {margin: 20px 0 13px;}
  .table {margin:20px 0 32px;
    tbody td {height: 80px;}
  }
}

/*------------购物车结算页-----------*/
.order_pay {
  .header {margin-bottom: 20px;}
  .addr {
    .header_mes{
      @include clearfix;
      height: 80px;line-height: 80px;
      h2{font-size: 18px;color: #222;float: left;font-weight: normal;}
      span{float: right;font-size: 14px;color: #888;}
    }
    li {
      margin-bottom: 20px;
    }

    .pay_addr{
      :nth-of-type(4){margin-right: 0px;}
      :nth-of-type(8){margin-right: 0px;}

      dl.pit_on{border: 1px solid #338bf1;}
      &>dl{padding: 25px;width: 220px;margin-right: 20px;height: 148px;
        border: 1px solid #e5e5e5;@include float-left; margin-bottom: 30px;
        >dt{width: 220px;margin: 0px;
          p{
            @include float-left;
            font-size: 18px;
            color: #222;
          }
          span.addr_de{@include float-right;font-size: 14px;color: $font-info-color-light;
            input:checked+i{
              display: block;
              float: right;
            }
            input:not(:checked)+i{
              display: none;
            }
          }
        }
      }
      dd{font-size: 14px;color: $font-info-color-light;text-align: left;margin: 0px;
        &.amend{color: #338bf1;text-align: right;display: none;}
      }
      .mes_add{margin-right: 0px;
        >dt{margin: 40px 0px 7px 0px;
          >a{display: block;text-align: center;
            img{width: 35px;height: 35px;}
          }
        }
        dd{text-align: center;}
      }
    }
  }
  .pay_type {margin-top: 20px;
    span {position: relative;@include inline-block;margin-right: 15px;
      input {position: absolute;@include opacity(0);}
      label {@extend .btn-info; background-color: #fff;}
      input:checked+label{border: 2px solid $border-primary-color;}
    }
    /*.btn-info {
      &:hover,&.active{border: 2px solid $border-primary-color;}
    }*/
  }
  .info {margin-top: 50px;
    .table {margin-bottom: 35px;
      tbody td {height: 80px;}
    }
  }
  .deliver {margin-bottom: 50px;}
  .form-block {
    dt {width: 110px;margin-right: 15px;color: $font-info-color;}
    dd {margin-left: 125px;
      input {width: 330px;}
    }
    .header3{@include clearfix;
      dl.fl{
        dd{margin: 0;}
      }
    }
    .h_border{border-bottom:1px solid #e5e5e5;}
  }
}

/*------------购物车-----------*/
//订单详情进度小icon
$cal-spacing: 10px;
$cal-sprite-dimensions:true;// false 生成的图片精灵要不要带长宽
@import "cal/*.png";

.order_car {
  .table tbody td {border-right: none;}
  .checkbox-wrap label {margin-right: 0;
    &:before {margin-right: 0;}
  }
  .num_box {position: relative;@include clearfix;width: 100px;height: 26px;overflow: hidden;border: $border-default;border-radius: $border-default-radius;
    .cut {float: left;width: 30px;height: 100%;
      &:after {content: "";@include inline-block;@include cal-sprite(cut1);}

    }
    input.num {float: left;width: 33px;padding: 0 2px;height: 100%;text-align: center;border: $border-default; border-top: none;border-bottom: none;}
    input.insert {position: absolute;}
    .add {float: left;width: 30px;height: 100%;
      &:after {content: "";@include inline-block;@include cal-sprite(add2);}
    }
  }
  .pay_bar {padding-left: 12px;}
}


.tableLayer {@extend .table;margin: 15px 0 20px;
  td{vertical-align: top;}
  dl.row {@extend .clearfix;padding: 10px 0 ;}
  dt {float: left;width: 50%;text-align: right;}
  dd {float: left;width: 50%;text-align: left;color: $font-info-color;}
}




/*--------------------支付页面  收银台头部-----------------------*/

nav.pay_menu{margin-bottom: 30px;
  padding: 17px 0 15px;
  height: 60px;
  line-height: 49px;
  .max-w{
    .logo{width: auto;margin-right: 25px;
      img{
        border-right: 1px solid #fff;
        padding-right: 25px;
      }
    }
    .title{
      color: $font-white-color;
      font-size: 18px;vertical-align: text-top;
    }
    .phone{
      color: $font-white-color;
      .one{
        padding:0px 15px;
      }
      i{
        font-weight: bold;
      }
    }
  }
}


/*订单成功提交页面 dasuPay*/

.dasupay{
  .pay_header {padding: 35px 20px;background: #fff;
  }
  .pay_top{
   padding:55px 25px 55px 50px;
   margin: 10px 0;
    background-color: $bg-white;
    .r {margin-left: 110px;}
    >dl{
      dt{margin-bottom: 10px;  font-size: 24px;  }
      dd{
        color: $font-info-color-light;
      }
    }
    .payable{
      margin-top: 14px;
      color: $font-info-color-light;
        i{font-size: 24px;
          color: $font-danger-color;
        }

    }
    .save_ui{
       @include float-left;
    }
  }
  .pay_center{
    background-color: $bg-white;
    padding: 45px 25px 50px 50px;
  margin-bottom: 35px;
    .money{
      color: $font-info-color-light;
      border-bottom: $border-default;
      padding-bottom: 20px;margin-bottom: 15px;
      dt{
        font-size: $font-18;
      }
    }
    .deal{
      margin-bottom: 40px;
    }
    .pay{
      line-height: 35px;
      dd{
        float: left;
        margin-right: 20px;
        a{
          color: $font-primary-color;
        }
      }
      .bar{
        margin: 0 auto 20px;
        padding-left: 1px;
        position: relative;
        border: 1px solid #9f9fa0;
        border-radius: 3px;
        &.disabled {background: #c8c8c8;}
        .fake-box{padding: 0 1px;
          input{
            width: 40px;
            height: 47px;
            /*background: #c8c8c8;*/
            border: none;
            border-right: 1px solid #e5e5e5;
            font-size: 30px;
            text-align: center;
            padding: 0px;
          }
          .last {border-right: none;}
        }

      }
    }
  }
  .pay_btn{margin-top: 30px;@include transition(transform,0.5s);
    &:focus,&:hover {@include scale(1.1);}
  }


}



/*绿色圆形勾选图标样式*/
.save_ui{

  /*  margin-top: 40px;
   margin-right: 111px; */
  div.save_grade + span:before{
    @include checked-checkbox(42px);
    font-size: 32px;
    box-shadow:none;
    text-shadow:none;
    cursor:auto;
  }
  span.save_box{
    @include radio_checkbox(40px,40px,$save_color,circle);
    font-size: $font-18;
    font-weight: bold;
    cursor:auto;

  }

}




/* 订单提交-线下支付 */
/*支付成功-大塑支付*/

.indent{
  .success{
    .l {float: left;}
    .r {margin-left: 110px;}
    position: relative;
    background-color: $bg-white;
    padding: 50px 40px 35px;
    margin-top:10px;
    .save_ui{
      div.save_grade + span:before{
        @include checked-checkbox(19px);
        font-size: 14px;
        box-shadow:none;
        text-shadow:none;
        margin-right: 0px;
      }
      h1 {margin-bottom: 10px;font-size: 24px;font-weight: normal;color: #222;}
      /*span.save_box{
        @include radio_checkbox(20px,20px,$save_color,circle);
        font-size: 20px;
        color: $save_color;
        margin-bottom: 20px;

      }*/
    }
    .online{
      width: 547px;
      color: $font-danger-color;
      margin-bottom: 35px;
    }
    .offline {padding-bottom: 50px;margin-bottom: 25px;margin-right: 300px;border-bottom: 1px solid $border-default-color;
      .tip { width: 547px;margin-bottom: 35px;}
      dl {line-height: 29px;
        dt {float: left;width: 80px;}
        dd {color: $font-info-color-light;}
      }
      .ps {margin-top: 5px;}

    }
    dl.detail{
      line-height: 29px;
      dd{
        span{
          color: $font-info-color-light;
        }

      }
    }
    .indent_btn{
      margin-top: 30px;
      a{
        border-radius: 4px;
        margin-right:20px;
      }
      .share{
        background:$bg-white url(/res/mpe/img/share.png) no-repeat 14px center;
        width: 32px;
        padding-left: 32px;
        &:hover{
          background-color: #f0f0f0;
          border-color: #dddddd;
        }
      }
    }
    .wechat{
      position: absolute;
      top: 148px;
      right: 76px;
        width:168px;
      dt{

        height: 168px;
      }
      dd{
        text-align: center;
      }
    }
  }
  .hint{
    background-color: $bg-white;
    padding: 35px 40px 40px 150px;
    margin-top:10px;
    margin-bottom: 30px;
    line-height: 30px;
    h3{
      font-weight: normal;
      color: #000;
    }
    p{
      color: $font-info-color-light;
    }
    span{
      color: $bg-primary;
    }
  }

}


/*提货单表单详情*/

.pick_up{
  color: #666;
  table{
    thead{
      th{
        font-weight: normal;
        font-size: 25px;
        letter-spacing: 2px;
      }
    }
    tbody{
      tr{
        .auth{
          text-align: left;
          padding: 15px;
          i{
            text-align: right;
            display: block;
          }
          span{
            margin-top: 120px;
            display: inline-block;
          }
        }
        td,th{
          border-right: 1px solid #e5e5e5;
          height: 56px;
          word-wrap: break-word;
          font-weight: normal;
        }
        th{
          //background: #eaf0fb;
          color: #338bf1;
        }
      }
      .time{
        td{
          padding:0 65px;
        }
        dt,dd{
          float: left;
        }
      }
      .mark{
        td{
          color: $font-danger-color;
        }
      }
    }

  }
  .remark{
    //text-indent: 2em;
    margin:0 16px 0 32px;
    line-height: 38px;
    p,dl{
      margin: 0 16px 0 32px;
    }
    dl.fr{
      margin-right:32px;
    }
  }
}


/*MPE在线平台交易框架协议*/

.contract_txt{
  color: #666;
  h2.title{
    text-align: center;
    font-size: 27px;
   background-color: #eee;
    //background-color: #338bf1;
    height: 60px;
    line-height: 60px;
    //color: #fff;
  }

  p{
    text-indent: 2em;
    margin-bottom: 10px;
  }
  .section{
    margin: 30px 20px;
    h2{
      margin-bottom: 15px;
    }
    table{
      width: 93%;
      margin: auto;
      text-align: center;
      input{
        width: 100%;
        border: none;
      }
      th{
        font-weight: normal;
        letter-spacing: 2px;
        //color: #338bf1;
      }
      td,th{
        border-right: 1px solid #e5e5e5;
        height: 56px;
        word-wrap: break-word;
        font-weight: normal;
      }
    }
    input{
        text-align: center;
        border:none;
        border-bottom: 1px solid #666;
        width:82px;
      }
    .content{
      margin: 0 2em;
      line-height: 24px;
      span{
        display: block;
      }
      .lg{
        width: 460px;
      }
    }
    dl{
      line-height: 55px;
      font-weight: bold;
    }
  }

}




